package com.gugee.ins.common.dal.service.statistics.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gugee.ins.common.dal.mapper.statistics.InsStBloggerGenerationMapper;
import com.gugee.ins.common.dal.service.statistics.InsStBloggerGenerationDao;
import com.gugee.ins.common.model.es.StatisticsData;
import com.gugee.ins.common.model.mysql.statistics.InsStBloggerGeneration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class InsStBloggerGenerationDaoImpl extends ServiceImpl<InsStBloggerGenerationMapper,InsStBloggerGeneration> implements InsStBloggerGenerationDao {


    @Override
    public void deleteByUid(long uid) {
        baseMapper.deleteByUid(uid);
    }

    @Override
    public List<InsStBloggerGeneration> getByUid(long uid) {
        return baseMapper.findByUid(uid);
    }

    @Override
    public List<StatisticsData> getStatisticsDataByUid(long uid) {
        return baseMapper.findStatisticsDataByUid(uid);
    }
}
